#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import sys

infile=open(sys.argv[1],'r')
for line in infile:
    line=line.rstrip()
    if line.startswith("INSERT"):
        line=line[42:-2]
        splitline=line.split("),(")
        for item in splitline:
            print item
infile.close()

